package com.dkd.manage.domain;

import com.dkd.common.annotation.Excel;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;

/**
 * 角色管理对象 tb_role
 * 
 * @author ruoyi
 * @date 2024-10-07
 */
@Getter
@Setter
public class Role implements Serializable {
    private static final long serialVersionUID = 1L;

    public Role(){}

    /** $column.columnComment */
    private Long roleId;

    /** 角色编码 */
    @Excel(name = "角色编码")
    private String roleCode;

    /** 角色名称 */
    @Excel(name = "角色名称")
    private String roleName;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("roleId", getRoleId())
            .append("roleCode", getRoleCode())
            .append("roleName", getRoleName())
            .toString();
    }
}
